'''
Created on 28/10/2012

@author: Raphoka
'''

# -*- coding: cp1252 -*-
#########################################################
#                                                       #
# Classe Gerada pelo PyGenerator - Gets e Sets v. 1.0   #
# Criado por Raphoka e Amigos                           #
#                                                       #
#########################################################

class Cargo:

#####################
# -- CONSTRUTOR --  #
#####################

    def __init__(self, Id = '', descricao = ''):
        self.__Id = Id
        self.__descricao = descricao

######################
# -- GETS E SETS --  #
######################

    def getId(self):
        return self.__Id
    def setId(self, Id):
        self.__Id = Id

        
    def getDescricao(self):
        return self.__descricao
    def setDescricao(self, descricao):
        self.__descricao = descricao

        

#################
# -- METODOS -- #
#################

    def __len__(self):
        return len(self.__descricao)
    
    def __eq__(self, cargo):
        if (self.__descricao.lower() == cargo.getDescricao().lower()):
            return True
        else:
            return False


    def __str__(self):
        m = '''
Objeto Tipo: Cargo

Atributos:

Id: %s
descricao: %s
''' %(self.__Id, self.__descricao)
        return m
